const express = require('express')

const app = express()


//配置 cors 中间件解决请求跨域问题
const cors = require('cors')
//注册cors
app.use(cors())

const router = require('./router/router')

app.use('/api',router)

app.listen(80,function(){
    console.log('启动服务器端口号 http://172.16.20.10/api/city')
})